home *** CD-ROM | disk | FTP | other *** search
- MOD(3I) Last changed: 4-13-99
-
-
- NNAAMMEE
- MMOODD, AAMMOODD, DDMMOODD, QQMMOODD, IIMMOODD, JJMMOODD, KKMMOODD - Computes remainder
-
- SSYYNNOOPPSSIISS
- MMOODD (([AA==]_a,,[PP==]_p))
- AAMMOODD (([AA==]_a,,[PP==]_p))
- DDMMOODD (([AA==]_a,,[PP==]_p))
- QQMMOODD (([AA==]_a,,[PP==]_p))
- IIMMOODD (([AA==]_a,,[PP==]_p))
- JJMMOODD (([AA==]_a,,[PP==]_p))
- KKMMOODD (([AA==]_a,,[PP==]_p))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, IRIX systems
-
- CF90, MIPSpro 7 Fortran 90, MIPSpro Fortran 77
-
- SSTTAANNDDAARRDDSS
- Fortran
-
- Fortran extensions: IIMMOODD, JJMMOODD, KKMMOODD, QQMMOODD
-
- DDEESSCCRRIIPPTTIIOONN
- These intrinsic functions compute the remainder of _a / _p. MMOODD is the
- generic function name; the others are specifics. These are elemental
- intrinsic functions. They accept the following arguments:
-
- _a Must be of type integer or real.
-
- _p Must be of the same type and kind type as _a. The result is
- undefined if _p is zero.
-
- These functions evaluate _y = _a - _p * IINNTT(_a/_p).
-
- NNOOTTEESS
- The MMOODD, AAMMOODD, and DDMMOODD intrinsic function names can be passed as
- arguments; the others cannot.
-
- RREETTUURRNN VVAALLUUEESS
- MMOODD returns the integer remainder of its integer arguments.
-
- AAMMOODD returns the single-precision real remainder of its
- single-precision real arguments.
-
- DDMMOODD returns the double-precision real remainder of its
- double-precision real arguments.
-
- QQMMOODD returns the quad-precision real remainder of its quad-precision
- real arguments.
-
- IIMMOODD returns the integer (KIND=2) remainder of its integer (KIND=2)
- arguments.
-
- JJMMOODD returns the integer (KIND=4) remainder of its integer (KIND=4)
- arguments.
-
- KKMMOODD returns the integer (KIND=8) remainder of its integer (KIND=8)
- arguments.
-
- The data type and kind type for single-precision, double-precision,
- and quad-precision values differ depending on your platform. For
- platform-specific information, see the TERMINOLOGY section of the
- IINNTTRROO__IINNTTRRIINN(3I) man page.
-
- EEXXAAMMPPLLEESS
- The following examples show the results of calling MMOODD with all
- possible combinations of positive and negative integers:
-
- MMOODD((77,,44)) = 3
-
- MMOODD((--77,,44)) = -3
-
- MMOODD((77,,--44)) = 3
-
- MMOODD((--77,,--44)) = -3
-
- SSEEEE AALLSSOO
- _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
- man page.
-